//
//  UIImageView+YCTools.m
//  Pods
//
//  Created by Apple on 2022/11/1.
//

#import "UIImageView+YCTools.h"
#import "UIImage+YCTools.h"

@implementation UIImageView (YCTools)

+ (UIImageView *)imageViewWithFrame:(CGRect)frame
                              image:(UIImage *)image {
    UIImageView *imageV = [[UIImageView alloc] initWithFrame:frame];
    imageV.image = image;
    return imageV;
}

+ (UIImageView *)imageViewWithFrame:(CGRect)frame
                              image:(UIImage *)image
                       cornerRadius:(CGFloat)cornerRadius {
    UIImageView *imageV = [[UIImageView alloc] initWithFrame:frame];
    imageV.image = image;
    imageV.layer.cornerRadius = cornerRadius;
    imageV.layer.masksToBounds = YES;
    return imageV;
}

@end
